<div class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
    <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
     
          <!-- Be sure to leave the brand out there if you want it shown -->
          <a class="brand" href="#">Pro-SOFT</a>
          
          <div class="nav-collapse">
		  
		  	<?php 
			//$admin = (isset(Yii::app()->user->name) and Yii::app()->user->name == '1') ? true : false ;
			$admin = (isset(Yii::app()->user->idPerfilUsuario) and Yii::app()->user->idPerfilUsuario == '1') ? true : false ;
			$demo = (isset(Yii::app()->user->idPerfilUsuario) and Yii::app()->user->idPerfilUsuario == '2') ? true : false ;
			
			
			$this->widget('zii.widgets.cssmenu.CssMenu',array(
			'htmlOptions'=>array('class'=>'pull-right nav'),
                   // 'submenuHtmlOptions'=>array('class'=>'dropdown-menu'),
                    //'itemCssClass'=>'css_top_item',
                    //'encodeLabel'=>false,
                    'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
            
			
	//		array('label'=>'Products', 'url'=>array('/producto'),'items'=>array(
      //    array('label'=>'New Arrivals', 'url'=>array('/producto', 'tag'=>'new')),
         //   array('label'=>'Most Popular', 'url'=>array('/producto', 'tag'=>'popular')),
       // )),
		
				array('label'=>'Categorias', 'url'=>array('/categoria'),'visible'=>$demo,'visible'=>$admin),
				array('label'=>'Inventario', 'url'=>array('/producto'),'visible'=>$demo,'visible'=>$admin),
                        
				array('label'=>'Transacciones', 'url'=>array('/proceso'),'visible'=>($demo || $admin),'items'=>array(
	            array('label'=>'Realizar Transaccion', 'url'=>array('/proceso/create'),'visible'=>($demo || $admin)),
	            array('label'=>'Consulta (transacciones)', 'url'=>array('/proceso/admin'),'visible'=>($demo || $admin)),
	        
                                     )
                                    
                                    ),
                        
				array('label'=>'Proveedores', 'url'=>array('/proveedor'),'visible'=>$admin),
				array('label'=>'Usuarios', 'url'=>array('/usuario'),'visible'=>($demo || $admin)),
				array('label'=>'Oficina', 'url'=>array('/oficina'),'visible'=>$admin),
				array('label'=>'Acerca de', 'url'=>array('/site/page','view'=>'about')),
				array('label'=>'Contactenos', 'url'=>array('site/contact')),
				array('label'=>'Auditoria', 'url'=>array('/auditTrail/admin'),'visible'=>$admin),
				array('label'=>'Login', 'url'=>array('/site/login'),'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')','url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
		  
		  
		  
			
    	</div>
    </div>
	</div>
</div>

<div class="subnav navbar navbar-fixed-top">
    <div class="navbar-inner">
    	<div class="container">
        
        	<div class="style-switcher pull-left">
                <a href="javascript:chooseStyle('none', 60)" checked="checked"><span class="style" style="background-color:#0088CC;"></span></a>
                <a href="javascript:chooseStyle('style2', 60)"><span class="style" style="background-color:#7c5706;"></span></a>
                <a href="javascript:chooseStyle('style3', 60)"><span class="style" style="background-color:#468847;"></span></a>
                <a href="javascript:chooseStyle('style4', 60)"><span class="style" style="background-color:#4e4e4e;"></span></a>
                <a href="javascript:chooseStyle('style5', 60)"><span class="style" style="background-color:#d85515;"></span></a>
                <a href="javascript:chooseStyle('style6', 60)"><span class="style" style="background-color:#a00a69;"></span></a>
                <a href="javascript:chooseStyle('style7', 60)"><span class="style" style="background-color:#a30c22;"></span></a>
          	</div>
           <form class="navbar-search pull-right" action="">
           	 
          <!--  <input type="text" class="search-query span2" placeholder="Search"> -->
           
           </form>
    	</div><!-- container -->
    </div><!-- navbar-inner -->
</div><!-- subnav -->